package com.huilian.iotbox.admin.dao;

import com.huilian.iotbox.data.po.DeliveryAddress;
import com.huilian.iotbox.data.vo.DeliveryAddressVo;
import com.huilian.iotbox.data.vo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 谢洛涛
 * @date 2021/9/7 9:30
 */
public interface DeliveryAddressDao {
    List<DeliveryAddressVo> findDeliveryAddressList(UserInfo userInfo);

    Integer update(DeliveryAddress deliveryAddress);

    Integer add(DeliveryAddress deliveryAddress);

    Integer delete(@Param("userId") Integer userId, @Param("deliveryAddressId")Integer deliveryAddressId);

    DeliveryAddressVo findDeliveryAddress(Integer deliveryAddressId);
}
